package com.yugao.fintech.antelope.base.config.core;

import com.yugao.fintech.antelope.base.config.core.event.ConfigDeleteEvent;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;

@Slf4j
@RequiredArgsConstructor
public class LocalDefaultConfigDeleteListener {
    @EventListener(ConfigDeleteEvent.class)
    public void defaultDelete(ConfigDeleteEvent event) {
        Object configKey = event.getSource();
        log.info("configKey [{}] 被删除", configKey);
    }
}
